package com.xh.bussiness.tiku.dao;

import com.xh.bussiness.tiku.model.Knowledge;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 知识点信息表 Mapper 接口
 * </p>
 *
 * @author daiwei
 * @since 2019-02-23
 */
public interface KnowledgeMapper extends BaseMapper<Knowledge> {

	void truncateTable();

	List<Knowledge> queryKnowledgeByChapterId(@Param("chapterId") String chapterId);

	Integer getMaxSortIndexKnowledgeBySubjectCode(@Param("subjectCode") String subjectCode, @Param("parentId") String parentId);
}
